package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UpdateTypeEnum implements IEnum<Integer> {

    FORCE_UPDATE(0, "强制升级"),
    NON_FORCE_WARN(1, "非强制提醒"),
    NON_FORCE_NON_WARN(2, "非强制不提醒");

    @EnumValue
    private Integer value;

    @JsonValue
    private String desc;

    UpdateTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
